<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<link rel="stylesheet" type="text/css" href="/css/report.css"/>
<script type="text/javascript" src="/js/consult.js"></script>

<s:set name="authCode" value="#session.authCode"/>
<s:set name="orgCode" value="#session.orgCode"/>
<s:set name="dCode" value="%{deskCode}"/>

<input type="hidden" id="deskCode" name="deskCode" value="<s:property value="deskCode"/>"/>
<input type="hidden" name="ConsultingSeq" value="<s:property value="consultInfoDetail.ConsultingSeq"/>"/>

<!-- 오른쪽 내용 시작 -->
      <dl class="Right_Contents_area">
        <dd class="Center_Top_title"> <span class="top_title"><img src="/images/report/consult/SubContents_Tit_01.gif" width="370" height="42" alt="지재권상담 일지" /></span> <span class="top_navi">HOME > 업무보고 > 지재권상담 일지</span></dd>
        <dd>&nbsp;</dd>
        <dd class="Right_Contents_SearchDate">마지막 수정일 : <span class="TEXT_Red_Bold"><s:property value="consultInfoDetail.modifyTime"/></span></dd>
        <dd>&nbsp;</dd>
        <dd class="Center_Top_contents">
          <div id="LIst_Zone">
            <dl>
              <dd>
              <table class="viewboard" border="1" cellspacing="0" summary="글 내용을 표시">
                <caption> 글 읽기</caption>
                
                <tbody>
                  <tr>
                    <th scope="row" class="Top_line" style="width:160px;"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />관리번호B</th>
                    <td class="Top_line"><s:property value="consultInfoDetail.manageNo"/></td>
                    <th scope="row" class="Top_line"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />업체명</th>
                    <td class="Top_line"><span class="viewboard_title"><s:property value="consultInfoDetail.companyName"/></span></td>
                  </tr> 
                  <tr>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />소요시간</th>
                    <td><s:property value="consultInfoDetail.takeTime"/>시간</td>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />상담일자</th>
                    <td><s:property value="consultInfoDetail.consultingDate"/></td>
                  </tr>  
                  <tr>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />상담분야 1</th>
                    <td><s:property value="consultInfoDetail.consultingTypeCode"/></td>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" /><s:property value="consultInfoDetail.consultingTypeCode"/></th>
                    <td><s:property value="consultInfoDetail.consultingSubTypeCode"/></td>
                  </tr>  
                  <tr>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />상담분야 2</th>
                    <td><s:property value="consultInfoDetail.iprCode"/></td>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />상담방법</th>
                    <td><s:property value="consultInfoDetail.consultingWayCode"/></td>
                  </tr> 
                  <tr>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />상담종류</th>
                    <td colspan="3"><s:property value="consultInfoDetail.consultingCategory" escape="false"/></td>
                  </tr> 
                  <tr>
                    <th scope="row" rowspan="2"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />피해규모</th>
                    <td rowspan="2">현지화폐 : <s:property value="consultInfoDetail.damageLocal"/></td>
                    <th scope="row" rowspan="2"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />환산액</th>
                    <td>KRW : <s:property value="consultInfoDetail.damageKrw"/></td>
                  </tr> 
                  <tr>
                    <td>USD : <s:property value="consultInfoDetail.damageUsd"/></td>
                  </tr> 
                  <tr>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />애로사항</th>
                    <td colspan="3"><s:property value="consultInfoDetail.difficulty" escape="false"/></td>
                  </tr>  
                  <tr>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />상담내용</th>
                    <td colspan="3"><s:property value="consultInfoDetail.consultingContent" escape="false"/></td>
                  </tr>  
                  <tr>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />향후계획</th>
                    <td colspan="3"><s:property value="consultInfoDetail.futurePlan" escape="false"/></td>
                  </tr>  
               <!--    <tr>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />지원결과</th>
                    <td colspan="3"><s:property value="consultInfoDetail.supportResult" escape="false"/></td>
                  </tr>--> 
                  <tr>
                    <th scope="row" class="Bottom_line" ><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />첨부파일</th>
                    <td colspan="3" class="Bottom_line">
                    	<!-- 
                    	<s:url id="download" namespace="/common" action="fileDownload.desk" includeParams="none">
                       		<s:param name="fileName"><s:property value="consultInfoDetail.uploadFileName"/></s:param>
                       		<s:param name="filePath"><s:property value="consultInfoDetail.pathName"/></s:param>
                       	</s:url>
                       	<s:a href="%{download}"><s:property value="consultInfoDetail.uploadFileName" escape="false"/></s:a>
                       	-->
                       	<s:if test="%{consultInfoDetail.fileName != null}">
	                      		<form name="form_file_download" method="POST" action="/common/fileDownload.desk">
		                      		<input type="hidden" name="fileName" value="<s:property value="consultInfoDetail.fileName"/>"/>
		                      		<input type="hidden" name="filePath" value="<s:property value="consultInfoDetail.pathName"/>"/>
	                      		</form>
	                      		<img src="/images/notice/icon_file.gif" width="11" height="11" alt="첨부파일" /> 
	                      		<span class="download" style="cursor:pointer;"><s:property value="consultInfoDetail.fileName"/></span>
	                    </s:if>
                     </td>
                  </tr>
                <!--   <tr>
                    <th scope="row"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />이미지파일1</th>
                    <td colspan="3">
                       	<s:if test="%{consultInfoDetail.picName1 != null}">
	                      		<form name="form_file_download" method="POST" action="/common/fileDownload.desk">
		                      		<input type="hidden" name="fileName" value="<s:property value="consultInfoDetail.picName1"/>"/>
		                      		<input type="hidden" name="filePath" value="<s:property value="consultInfoDetail.pathName"/>"/>
	                      		</form>
	                      		<img src="/images/notice/icon_file.gif" width="11" height="11" alt="이미지파일1" /> 
	                      		<span class="download" style="cursor:pointer;"><s:property value="consultInfoDetail.picName1"/></span>
	                    </s:if>
                     </td>
                  </tr>
                  <tr>
                    <th scope="row" rowspan="2" class="Bottom_line"><img src="/images/report/consult/board_Icon_dot.gif" width="15" height="12" alt="" />이미지파일2</th>
                    <td colspan="3" class="Bottom_line">
                       	<s:if test="%{consultInfoDetail.picName2 != null}">
	                      		<form name="form_file_download" method="POST" action="/common/fileDownload.desk">
		                      		<input type="hidden" name="fileName" value="<s:property value="consultInfoDetail.picName2"/>"/>
		                      		<input type="hidden" name="filePath" value="<s:property value="consultInfoDetail.pathName"/>"/>
	                      		</form>
	                      		<img src="/images/notice/icon_file.gif" width="11" height="11" alt="이미지파일2" /> 
	                      		<span class="download" style="cursor:pointer;"><s:property value="consultInfoDetail.picName2"/></span>
	                    </s:if>
                     </td>
                  </tr>-->
                </tbody>
              </table> 
              </dd>
            </dl> 
            <dl class="List_Btn_area"><!-- 버튼 부분 -->
             <dd class="Left_Zone"><a href="/consult/consultList.desk"><img src="/images/notice/btn_list.gif" alt="목록" width="52" height="26" border="0" /></a></dd>            
             <dd class="Right_Zone">
             <s:if test="#orgCode != 'KIPO'">
             	<s:if test="#session.deskCode == #dCode">
             		<a href="/consult/consultModifyForm.desk?consultingSeq=<s:property value="consultInfoDetail.ConsultingSeq"/>"><img src="/images/report/consult/btn_edit.gif" width="110" height="26" alt="상담일지수정" /></a>&nbsp;
             		<img src="/images/notice/btn_del.gif" id="btn_consult_del" alt="삭제" width="54" height="26" border="0" style="cursor:pointer;"/></a>
             	</s:if>
             	<s:if test="#authCode == 'ADMIN_ORG'">
             		<a href="/consult/consultModifyForm.desk?consultingSeq=<s:property value="consultInfoDetail.ConsultingSeq"/>"><img src="/images/report/consult/btn_edit.gif" width="110" height="26" alt="상담일지수정" /></a>&nbsp;
             		<img src="/images/notice/btn_del.gif" id="btn_consult_del" alt="삭제" width="54" height="26" border="0" style="cursor:pointer;"/></a>
             	</s:if>
             	<s:if test="#authCode == 'ADMIN'">
             		<a href="/consult/consultModifyForm.desk?consultingSeq=<s:property value="consultInfoDetail.ConsultingSeq"/>"><img src="/images/report/consult/btn_edit.gif" width="110" height="26" alt="상담일지수정" /></a>&nbsp;
             		<img src="/images/notice/btn_del.gif" id="btn_consult_del" alt="삭제" width="54" height="26" border="0" style="cursor:pointer;"/></a>
             	</s:if>
             </s:if>
             </dd>
            </dl><!-- 버튼 부분 -->           
          </div>
        </dd>
      </dl>
      <!-- 오른쪽 내용 끝 --> 
    </div>
  </div>
  <!-- center 나누어 지는 부분 끝 --> 
</div>